package com.auto.sns.core.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.core.domain.SnsCoreSignIn;
import com.auto.sns.core.dao.ISnsCoreSignInDAO;
import com.system.util.PersistUtil;
import com.auto.sns.core.sql.sqlid.SnsCoreSignInSqlID;
/**
 * : t_auto_sns_core_sign_in
 * 
 * 
 * @author Gen
 */
public class SnsCoreSignInDAOImpl implements ISnsCoreSignInDAO{

	public SnsCoreSignIn insertSnsCoreSignIn(SnsCoreSignIn bean){
		return PersistUtil.insert(bean, SnsCoreSignInSqlID.INSERT);
	}

	public boolean deleteSnsCoreSignIn(String scfsGuid){
		PersistUtil.delete(scfsGuid, SnsCoreSignInSqlID.DELETE);
		return true;
	}	

	public SnsCoreSignIn updateSnsCoreSignIn(SnsCoreSignIn bean){
		return PersistUtil.update(bean, SnsCoreSignInSqlID.UPDATE);
	}	

	public SnsCoreSignIn loadSnsCoreSignIn(String scfsGuid){
		return PersistUtil.query(new SnsCoreSignIn().getClass(), scfsGuid);
	}

	public List<SnsCoreSignIn> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsCoreSignInSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsCoreSignInSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
